@import "mixin-fun";
@import "common/color.scss";
@import "common/common.scss";

* {
  margin: 0;
  padding: 0;
}

html,
body {
  background-color: #ffffff !important;
  height: 100%;
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}

[v-cloak] {
  visibility: hidden !important;
}

.animated {
  animation-duration: .5s;
}

.mui-preview-image.mui-fullscreen {
  position: fixed;
  z-index: 10000 !important;
}

.mui-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 995 !important;
  background-color: rgba(0, 0, 0, .3) !important;
}

#app {
  .material {
    position: relative;

    .material_image {
      position: relative;
      text-align: center;
      // padding: rem(10);
      background-color: #ffffff;
      overflow: hidden;

      // position: relative;
      // border: 1px solid #e36cba;
      & ul {
        margin-left: rem(-3);
      }

      .swiper-wrapper {
        // display: table
      }

      .swiper-slide {
        width: 100% !important;
        // display: table-cell;
        // vertical-align: middle;
      }

      .slide {
        text-align: center;
        overflow: hidden;
        text-align: center;
        display: table;

        .img {
          display: table-cell;
          vertical-align: middle;
        }

        & img {
          max-width: 100% !important;
          max-height: 100% !important;
          vertical-align: middle;
          display: inline-block;
        }
      }
    }
    .specifications{
      color: #909399;
      height: rem(78);
      line-height: rem(78);
      padding-left: rem(30);
      border-bottom: 1px solid #eeeeee;
      border-top: 1px solid #eeeeee;
      font-weight: bold;
      position: relative;
      font-size: rem(22);
      .right{
        position: absolute;
        width: rem(20);
        height: rem(20);
        line-height: rem(20);
        right: rem(30);
        top:rem(26); 
        & img{
         height: rem(20);
        }
      }
    }
    .goods_details{
      padding-bottom: rem(110);
      .bg{
        height:rem(30);
        background-color: #fcfcfc;
      }
      .title{
        height: rem(60);
        line-height: rem(60);
        font-weight: bold;
        color: #909399;
        text-align: center;
        font-size: rem(22);
      }
      
    }
  }

  .goods_message {
    .good_title {
      font-size: rem(22);
      padding: rem(25) rem(20) 0 rem(20);
      overflow: hidden;
      .good_name {
        // overflow: hidden;
        // text-overflow: ellipsis;
        // display: -webkit-box;
        // -webkit-line-clamp: 2;
        // -webkit-box-orient: vertical;
        font-size: rem(24);
        color: $shopName;
        font-weight: 700;
        min-height: rem(30);
        line-height: rem(30);
      }
      .good_price {
        height: rem(80);
        line-height: rem(80);
        color: #909399;

        .end_time {
          float: left;
          color: #cccccc;
        }

        .mail {
          float: left;
          margin-right: rem(20);
        }

        .xiangou {
          float: left;
          margin-right: rem(20);
        }

        .price {
          float: right;

          .pce {
            float: right;
            color: $info;
            font-size: rem(32);
          }
        }

        .num_sales,
        .stock_num {
          float: right;
        }

        .num_sales {
          margin-right: 10px;
        }
      }
    }
  }
  .shopDetail {
    position: fixed;
    width: 100%;
    bottom: 0;
    min-height: rem(800);
    background-color: #fff;
    z-index: 997;
    // font-weight: bold;
    font-size: rem(24);
    color: #606266;
    .header {
      height: rem(120);
      line-height: rem(120);
      text-align: center;
    }
    .close {
      width: rem(30);
      height: rem(30);
      position: absolute;
      right: rem(30);
      top: rem(30);

      & img {
        max-width: 100%;
        max-height: 100%;
      }
    }
    .message_list_p{
      overflow: hidden;
      padding-bottom: rem(114);
    }
    .message_list {
      overflow: auto;
      max-height: rem(800);
     
      .list{
        padding: rem(25) rem(0);
        overflow: hidden;
        .left{
          width: rem(100);
          text-align: center;
          color: #909399;
        }
        .left,.right{
          float: left;
        }
      }
    }
    .footer_p{
      width: 90%;
      margin: 0 auto;
      .message_footer {
        position: absolute;
        bottom: rem(50);
        width: 90%;
        margin: 0 auto;
        height: rem(64);
        line-height: rem(64);
        background-color: #e6a23c;
        text-align: center;
        color: #fff;
        font-size: rem(26);
        border-radius: 5px;
      }
    }
    .presell {
      background-color: #7461aa;
    }
  }

  .error {
    position: absolute;
    top: 50%;
    right: 0;
    bottom: 0;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
  }
}
.footer{
  position: fixed;
  bottom: 0;
  height: rem(100);
  width: 100%;
  background-color: #e6a23c;
  line-height: rem(100);
  text-align: center;
  color: #fff;
  font-size: rem(24);
  display: flex;
  justify-content: center;
  align-items: center;
  .text{
    margin-left: rem(20);
  }
  & img{
    width: rem(28);
    height: rem(26);
    margin-top: rem(35);
  }
}
.swiper-pagination-bullet-active {
  opacity: 1;
  background: #e6a23c !important;
}

#swiper-details {
  .swiper-pagination {
    top: rem(35) !important;
  }
}